{% extends "dtdBase.html" %}

{% block title %}简历{% endblock %}

{% load updateleftmenucss %}

{% block leftmenu %}{% left_css "grid" %} {% endblock %}

{% block javascript%}
    <script type="text/javascript" src="/static/js/plugins/jquery.dataTables.min.1.9.js"></script>
    <script type="text/javascript" src="/static/js/custom/approvalcv.js"></script>
    <!-- jQuery Image Gallery styles -->
    <!--[if IE 9]>
    <link rel="stylesheet" media="screen" href="css/ie9.css"/>
<![endif]-->

    <!--[if IE 8]>
    <link rel="stylesheet" media="screen" href="css/ie8.css"/>
<![endif]-->

    <!--[if IE 7]>
    <link rel="stylesheet" media="screen" href="css/ie7.css"/>
<![endif]-->
{% endblock %}
{% block maincontentinner %}
    <div class="maincontentinner">

        <ul class="maintabmenu">
            <li ><a href="{% url 'load_cv' %}">我的简历</a></li>
            <li class="current"><a href="{% url 'approval_cv' %}">审核简历</a></li>
        </ul><!--maintabmenu-->
        <div class="content">
            <div class="contenttitle radiusbottom0">
                <h2 class="table"><span>&nbsp;</span></h2>
            </div><!--contenttitle-->

            <div class="tableoptions">
                <button class="validatebutton radius3" title="通过验证" value="passed">通过</button> &nbsp; &nbsp;
                <button class="validatebutton radius3" title="不通过" value="notpassed">不通过</button> &nbsp; &nbsp;

                <form id="filter" action="{% url 'approval_cv' %}" method="post" style="display:inline;">
                    <select id="status" name="status" class="radius3">
                        <option value="">全部</option>
                        {% for st in sts %}

                            {% if status == st.Status_key %}
                                <option value="{{ st.Status_key }}" selected="selected">{{ st.Status_name }}</option>
                            {% elif status != st.Status_key %}
                                <option value="{{ st.Status_key }}">{{ st.Status_name }}</option>
                            {% endif %}
                        {% endfor %}
                    </select> &nbsp;
                </form>

            </div>

            <table cellpadding="0" cellspacing="0" border="0" id="dyntable" class="stdtable stdtablecb" >
            <colgroup>
                <col class="con0" />
                <col class="con1" />
                <col class="con0" />
                <col class="con1" />
                <col class="con0" />
                <col class="con1" />
                <col class="con0" />
            </colgroup>
            <thead>
            <tr>

                <th class="head0"><input type="checkbox" class="checkall" id="selectall"/></th>
                <th class="head1">简历名称</th>
                <th class="head0">语言</th>
                <th class="head1">状态</th>
                <th class="head0">创建时间</th>
                <th class="head1">更新时间</th>
                <th class="head0">&nbsp;</th>
            </tr>
            </thead>
            <tfoot>
            <tr>
                <th class="head0"></th>
                <th class="head1">简历名称</th>
                <th class="head0">语言</th>
                <th class="head1">状态</th>
                <th class="head0">创建时间</th>
                <th class="head1">更新时间</th>
                <th class="head0">&nbsp;</th>
            </tr>
            </tfoot>
            <tbody>
              {% for resume in resumes %}
                    <tr>
                        <td class="center"><input type="checkbox" value="{{ resume.Resume_id  }}"/></td>
                        <td class="con1">{{ resume.Resume_name }}</td>
                        <td class="con0" style="text-align: center">{{ resume.Language_id.Language_name}}</td>
                        <td class="center">{{ resume.Resume_status.Status_name}}</td>
                        <td class="con0">{{ resume.Create_time|date:"Y-m-d"}}</td>
                        <td class="center">{{ resume.Update_time|date:"Y-m-d"}}</td>
                        <td class="center"><div class="toggle"  download="{% url "download_file" resume.Resume_id %}"><a  href ="{% url "download_file" resume.Resume_id %}">查看</a></div></td>
                    </tr>
                {% endfor %}
            </tbody>
            </table>

            <br /><br />


        </div><!--content-->

    </div><!--maincontentinner-->
{% endblock %}



